Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve scripts/amg.py: paths, progress bar, multi-GPU, resuming #398

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

baldassarreFe
Copy link

  • Change all os.path methods to the nicer pathlib.Path
  • Respect subfolders when processing a directory e.g. my/dataset/class_{0,1,2}/img_{0,1,2}.jpg -> my/masks/class_{0,1,2}/img_{0,1,2}.json
  • Show progress bar using tqdm
  • Load images in a separate dataloader process
  • Split a large dataset across multiple GPUs using rank/world size, no synchronization is needed, just 2 command line arguments
  • Skip processing images that already have a corresponding output dir (png masks) or json file (rle masks)

- Change all os.path methods to the nicer pathlib.Path
- Respect subfolders when processing a directory e.g. my/dataset/class_{0,1,2}/img_{0,1,2}.jpg -> my/masks/class_{0,1,2}/img_{0,1,2}.json
- Show progress bar using tqdm
- Load images in a separate dataloader process
- Split a large dataset across multiple GPUs using rank/world size
- Skip processing images that already have a corresponding output dir (png masks) or json file (rle masks)
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants